package _18_Abstraction_Polymorphism;

public class Elephant extends Mammal{

	@Override
	void makeNoise() 
	{
		System.out.println("Make sound like an elephant.");
		
	}

	@Override
	public void move(String direction) 
	{
		System.out.println("Moving like an elephant.");
		
	}

	@Override
	public void stopMoving() 
	{
		System.out.println("Elephant stops moving");
		
	}

	@Override
	void eat(String food) 
	{
		System.out.println("Elephant is eating " + food);
		
	}

}
